CC=g++
CFLAGS=-c -Wall -g `xml2-config --cflags` `curl-config --cflags`
LDFLAGS=-lcppunit -ldl -lboost_regex -lssl `xml2-config --libs` `curl-config --libs`
#SOURCES=RestClient.cpp Request.cpp Response.cpp
SOURCES=XMLRequest.cpp RTMRequest.cpp Response.cpp XMLResponse.cpp ResponseManager.cpp RestClient.cpp RestClientTest.cpp RTMClient.cpp testRunner.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=testRunner

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -rf $(EXECUTABLE) $(OBJECTS)
